var i;
Object.defineProperty(exports, "__esModule", {
  value: true
});
var BundleConfig = require("AA_BundleConfig");
var UIConfig_Entry = require("AA_UIConfig_Entry");
var LogManager = require("AA_LogManager");
var ScheduleManage = require("AA_ScheduleManage");
var UIManager = require("AA_UIManager");
var UIScene = require("AA_UIScene");
var ModuleManager = require("AA_ModuleManager");
var NodePoolMag = require("AA_NodePoolMag");
var AudioManager = require("AA_AudioManager");
var _decorator = cc._decorator;
var _ccclass = _decorator.ccclass;
_decorator.property;

var _def_Entry = function (e) {
  function _creator() {
    return null !== e && e.apply(this, arguments) || this;
  }
  __extends(_creator, e);
  _creator.prototype._show = function () {
    var e = [];
    for (var t in UIConfig_Entry.UIConfig_Entry) {
      var o = UIConfig_Entry.UIConfig_Entry[t].prefab;
      e.push(o);
    }
    // cc.resources.preload(e, function (e) {
    //   e && LogManager.LogMgr.error("preload common prefabs error: " + e);
    UIManager.default.open(BundleConfig.BundleNames.Resouce, UIConfig_Entry.UIView_Entry.UI_Entry);
    // });
    cc.debug.setDisplayStats(false);
  };
  _creator.prototype.update = function (e) {
    ScheduleManage.ScheduleMgr.update(e);
  };

  _creator.prototype.backHome = function (e) {
    ModuleManager.ModuleMgr.cleanModule();
    NodePoolMag.NodePoolMag.instance.clearAllNode();
    AudioManager.AudioMgr.stopMusic();
    UIManager.default.closeAll();
    cc.systemEvent.emit('backHome');
    cc.director.loadScene('home');
  };

  return __decorate([_ccclass], _creator);
}(UIScene.default);
exports.default = _def_Entry;